package game;

import java.awt.Point;
import java.awt.geom.Point2D;

public class Inimigo_02 extends BaseEnemy
{
	private static final long serialVersionUID = 1L;

	public Inimigo_02(int indexImage, Point position, Point size, Point sPos,
			Point recorte, Point rowLine, float time, boolean input, int HP,
			float speedShoot)
	{
		super(indexImage, position, size, sPos, recorte, rowLine, time, input, HP,
				speedShoot);
		this.isBomber = true;
	}
	
	@Override
	public void Update(Player p) {
		// TODO Auto-generated method stub
		automatic = true;
		super.Update(p);
		
		
		if(Game.rand.nextInt(1000) > 995)
		{
			
			ShootManager.getInstance().addIceShoot(InstanciarPosTiro(this.getRectangle()), 
			new Point(10, 10), new Point2D.Double(super.speed.getX() * 1.5f, super.speed.getY() * 1.5f), this.animationType.y, 5.0f);
		}
	}
}